<?php
/***************************************************************************
 *
 *   copyright            : (C) 2011 Winds of Storm
 *
 *   $Id: clientpull.php 155 2011-06-20 16:01:58Z stormerider $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

require_once("config.php");
$skip_header	= 1;
require_once($libdir . "init." . $phpEx);
require_once($libdir . "chat_functs." . $phpEx);

$interval   = 5000;
if (isset($config['CP_INTERVAL'])) {
    $interval   = $config['CP_INTERVAL'];
}

$template = new Template($config['TPL_DIR']);
$template->set_filenames(array('body' => 'client_pull_body.tpl'));
$template->assign_vars(array(
    'CP_INTERVAL'   => $interval,
    'U_BASEURL'     => getBaseURI(),
));
$template->pparse('body');
